Electrical device such that current flowing through it in one circuit can switch on and off a current in a second circuit